package com.platform.common.utils;

import org.apache.commons.lang3.StringUtils;

import java.io.IOException;
import java.security.Security;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * about certificate constant
 *
 * @Author davenTsang
 */
public class CertConstant {
    public static final String CERT_BEGIN = "-----BEGIN CERTIFICATE-----";
    public static final String CERT_END = "-----END CERTIFICATE-----";
    public static final String PUBLIC_KEY_BEGIN = "-----BEGIN PUBLIC KEY-----";
    public static final String PUBLIC_KEY_END = "-----END PUBLIC KEY-----";
    public static final String CRL_BEGIN = "-----BEGIN X509 CRL-----";
    public static final String END_CRL = "-----END X509 CRL-----";
    public static final String PFX_BEGIN = "-----BEGIN PKCS#12-----";
    public static final String PFX_END = "-----END PKCS#12-----";

    public static final String CERT_REQUEST = "-----BEGIN CERTIFICATE REQUEST-----";
    public static final String END_REQUEST = "-----END CERTIFICATE REQUEST-----";
    public static final String CERT_NEW_REQUEST = "-----BEGIN NEW CERTIFICATE REQUEST-----";
    public static final String END_NEW_REQUEST = "-----END NEW CERTIFICATE REQUEST-----";




}
